package com.timesheet.server.common.session;

public enum Session {
	INSTANCE ;
	
	public void setUser(){
		
	}
	
	public String getUser(){		
		return System.getProperty("user.name");
		//return null ;
	}

	public String getProjectId() {		
		return "ABSLIFE";
	}
	
	public String[] getProjects(){
		PropertyFileReader fileReader = new PropertyFileReader();
5		String value = fileReader.getValue("user.project.length");
		int projectSize = Integer.parseInt(value);
		String projects[] = new String[projectSize];
		for(int i = 0 ; i < projectSize;i++){
			projects[i] =fileReader.getValue("user.project."+i);
		}
		//String projects[]={"ABSLIFE","ABSCFS","ABSKRAFT"};
		return projects ;
	}
}
